package com.wanxi.javabean;

/**
 * 一个完整的JavaBean对象
 * 1.成员变量私有（以后所有的成员变量私有）
 * 2.构造方法：无参数和有参数的构造方法都要写
 * 3.每个成员变量设置set和get方法
 */
public class Student {
    private int id;
    private String name;
    private int age;
    private String birthday;

    public Student() {

    }

    public Student(int id, String name, int age, String birthday) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
